/**
 * 
 */
package com.oc.mba.entity;

import java.io.Serializable;

import com.oc.mba.presist.Answer;

/**
 * 
 * @author cfuture.chenyoca [桥下一粒砂] (chenyoca@163.com)
 * @date 2012-2-21
 */
public class AnswerEntity implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 6323468843096564602L;

	/** 选项内容 **/
	private String content;
	/** 是否正确选项 **/
	private boolean correct;
	/** 是否选择了当前选项 **/
	private boolean checked;

	public AnswerEntity(Answer ans) {
		this.content = ans.getContent();
		this.correct = ans.isCorrect();
		this.checked = false;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public boolean isCorrect() {
		return correct;
	}

	public void setCorrect(boolean correct) {
		this.correct = correct;
	}

	public boolean isChecked() {
		return checked;
	}

	public void setChecked(boolean checked) {
		this.checked = checked;
	}

}
